@extends('admin.layout.layout')

@section('content')

    <div class="layui-form"  style="padding: 20px 0 0 0;">

        {{csrf_field()}}

        <input value="{{$record->id}}" name="id" type="hidden">
        <input value="{{$record->parent}}" name="parent" type="hidden">
        <input value="{{$record->level}}" name="level" type="hidden">

        <div class="layui-form-item">
            <label class="layui-form-label">权限名称</label>
            <div class="layui-input-inline">
                <input type="text" name="name" value="{{$record->name}}"  lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">路由</label>
            <div class="layui-input-inline">
                <input type="text" name="url" value="{{$record->url}}"  placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-hide">
            <input type="button" lay-submit lay-filter="LAY-submit" id="LAY-submit" value="确认">
        </div>
    </div>


@endsection


@section('js')
    <script>

        lay.use(['index','form']);

    </script>

@endsection




